import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'  // 
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import { createPinia } from 'pinia'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// 设置dayjs语言为中文
dayjs.locale('zh-cn');

const app = createApp(App)

app.use(router)
app.use(ElementPlus, {locale: zhCn})
app.use(Antd)
app.config.globalProperties.$antLocale = zhCN // 全局配置Ant Design Vue的语言

app.use(createPinia())

app.mount('#app')
